times(x, y) → sum(generate(x, y))
generate(x, y) → gen(x, y, 0)
gen(x, y, z) → if(ge(z, x), x, y, z)
if(true, x, y, z) → nil
if(false, x, y, z) → cons(y, gen(x, y, s(z)))
sum(nil) → 0
sum(cons(0, xs)) → sum(xs)
sum(cons(s(x), xs)) → s(sum(cons(x, xs)))
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
↳ QTRS
↳ Overlay + Local Confluence
times(x, y) → sum(generate(x, y))
generate(x, y) → gen(x, y, 0)
gen(x, y, z) → if(ge(z, x), x, y, z)
if(true, x, y, z) → nil
if(false, x, y, z) → cons(y, gen(x, y, s(z)))
sum(nil) → 0
sum(cons(0, xs)) → sum(xs)
sum(cons(s(x), xs)) → s(sum(cons(x, xs)))
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
times(x, y) → sum(generate(x, y))
generate(x, y) → gen(x, y, 0)
gen(x, y, z) → if(ge(z, x), x, y, z)
if(true, x, y, z) → nil
if(false, x, y, z) → cons(y, gen(x, y, s(z)))
sum(nil) → 0
sum(cons(0, xs)) → sum(xs)
sum(cons(s(x), xs)) → s(sum(cons(x, xs)))
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
TIMES(x, y) → GENERATE(x, y)
TIMES(x, y) → SUM(generate(x, y))
SUM(cons(s(x), xs)) → SUM(cons(x, xs))
GENERATE(x, y) → GEN(x, y, 0)
SUM(cons(0, xs)) → SUM(xs)
IF(false, x, y, z) → GEN(x, y, s(z))
GE(s(x), s(y)) → GE(x, y)
GEN(x, y, z) → GE(z, x)
GEN(x, y, z) → IF(ge(z, x), x, y, z)
times(x, y) → sum(generate(x, y))
generate(x, y) → gen(x, y, 0)
gen(x, y, z) → if(ge(z, x), x, y, z)
if(true, x, y, z) → nil
if(false, x, y, z) → cons(y, gen(x, y, s(z)))
sum(nil) → 0
sum(cons(0, xs)) → sum(xs)
sum(cons(s(x), xs)) → s(sum(cons(x, xs)))
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
TIMES(x, y) → GENERATE(x, y)
TIMES(x, y) → SUM(generate(x, y))
SUM(cons(s(x), xs)) → SUM(cons(x, xs))
GENERATE(x, y) → GEN(x, y, 0)
SUM(cons(0, xs)) → SUM(xs)
IF(false, x, y, z) → GEN(x, y, s(z))
GE(s(x), s(y)) → GE(x, y)
GEN(x, y, z) → GE(z, x)
GEN(x, y, z) → IF(ge(z, x), x, y, z)
times(x, y) → sum(generate(x, y))
generate(x, y) → gen(x, y, 0)
gen(x, y, z) → if(ge(z, x), x, y, z)
if(true, x, y, z) → nil
if(false, x, y, z) → cons(y, gen(x, y, s(z)))
sum(nil) → 0
sum(cons(0, xs)) → sum(xs)
sum(cons(s(x), xs)) → s(sum(cons(x, xs)))
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
GE(s(x), s(y)) → GE(x, y)
times(x, y) → sum(generate(x, y))
generate(x, y) → gen(x, y, 0)
gen(x, y, z) → if(ge(z, x), x, y, z)
if(true, x, y, z) → nil
if(false, x, y, z) → cons(y, gen(x, y, s(z)))
sum(nil) → 0
sum(cons(0, xs)) → sum(xs)
sum(cons(s(x), xs)) → s(sum(cons(x, xs)))
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
GE(s(x), s(y)) → GE(x, y)
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
GE(s(x), s(y)) → GE(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
SUM(cons(s(x), xs)) → SUM(cons(x, xs))
SUM(cons(0, xs)) → SUM(xs)
times(x, y) → sum(generate(x, y))
generate(x, y) → gen(x, y, 0)
gen(x, y, z) → if(ge(z, x), x, y, z)
if(true, x, y, z) → nil
if(false, x, y, z) → cons(y, gen(x, y, s(z)))
sum(nil) → 0
sum(cons(0, xs)) → sum(xs)
sum(cons(s(x), xs)) → s(sum(cons(x, xs)))
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
SUM(cons(s(x), xs)) → SUM(cons(x, xs))
SUM(cons(0, xs)) → SUM(xs)
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
SUM(cons(s(x), xs)) → SUM(cons(x, xs))
SUM(cons(0, xs)) → SUM(xs)
No rules are removed from R.
SUM(cons(s(x), xs)) → SUM(cons(x, xs))
SUM(cons(0, xs)) → SUM(xs)
POL(0) = 0
POL(SUM(x1)) = 2·x1
POL(cons(x1, x2)) = 2·x1 + 2·x2
POL(s(x1)) = 2·x1
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
IF(false, x, y, z) → GEN(x, y, s(z))
GEN(x, y, z) → IF(ge(z, x), x, y, z)
times(x, y) → sum(generate(x, y))
generate(x, y) → gen(x, y, 0)
gen(x, y, z) → if(ge(z, x), x, y, z)
if(true, x, y, z) → nil
if(false, x, y, z) → cons(y, gen(x, y, s(z)))
sum(nil) → 0
sum(cons(0, xs)) → sum(xs)
sum(cons(s(x), xs)) → s(sum(cons(x, xs)))
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
IF(false, x, y, z) → GEN(x, y, s(z))
GEN(x, y, z) → IF(ge(z, x), x, y, z)
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
times(x0, x1)
generate(x0, x1)
gen(x0, x1, x2)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
sum(nil)
sum(cons(0, x0))
sum(cons(s(x0), x1))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
IF(false, x, y, z) → GEN(x, y, s(z))
GEN(x, y, z) → IF(ge(z, x), x, y, z)
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
(1) (IF(ge(x5, x3), x3, x4, x5)=IF(false, x6, x7, x8) ⇒ IF(false, x6, x7, x8)≥GEN(x6, x7, s(x8)))
(2) (ge(x5, x3)=false ⇒ IF(false, x3, x4, x5)≥GEN(x3, x4, s(x5)))
(3) (false=false ⇒ IF(false, s(x19), x4, 0)≥GEN(s(x19), x4, s(0)))
(4) (ge(x20, x21)=false∧(∀x22:ge(x20, x21)=false ⇒ IF(false, x21, x22, x20)≥GEN(x21, x22, s(x20))) ⇒ IF(false, s(x21), x4, s(x20))≥GEN(s(x21), x4, s(s(x20))))
(5) (IF(false, s(x19), x4, 0)≥GEN(s(x19), x4, s(0)))
(6) (IF(false, x21, x4, x20)≥GEN(x21, x4, s(x20)) ⇒ IF(false, s(x21), x4, s(x20))≥GEN(s(x21), x4, s(s(x20))))
(7) (GEN(x9, x10, s(x11))=GEN(x12, x13, x14) ⇒ GEN(x12, x13, x14)≥IF(ge(x14, x12), x12, x13, x14))
(8) (GEN(x9, x10, s(x11))≥IF(ge(s(x11), x9), x9, x10, s(x11)))
POL(0) = 0
POL(GEN(x1, x2, x3)) = -1 + x1 + x2 - x3
POL(IF(x1, x2, x3, x4)) = -x1 + x2 + x3 - x4
POL(c) = -2
POL(false) = 1
POL(ge(x1, x2)) = 1
POL(s(x1)) = 1 + x1
POL(true) = 1
The following pairs are in Pbound:
IF(false, x, y, z) → GEN(x, y, s(z))
The following rules are usable:
IF(false, x, y, z) → GEN(x, y, s(z))
ge(x, y) → ge(s(x), s(y))
false → ge(0, s(y))
true → ge(x, 0)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
↳ QDP
↳ DependencyGraphProof
GEN(x, y, z) → IF(ge(z, x), x, y, z)
ge(x, 0) → true
ge(0, s(y)) → false
ge(s(x), s(y)) → ge(x, y)
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))